laravel eloquent where date today

40

$posts = Post::whereDate('created_at', Carbon::today())->get();
    $posts = Post::whereDate('created_at', Carbon::today())->get();
$q->where('created_at', '>=', date('Y-m-d').' 00:00:00'));
$items = Item::select("*")
                ->whereDate('created_at', Carbon::today())
                ->get();
   
dd($items);

Comments

Submit
0 Comments